package com.bonuo.saas.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 投标任务单实体类
 * 对应数据库表：投标任务单表
 */
@Data
@ApiModel(value = "BidTask", description = "投标任务单信息")
public class TaskBid extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "投标任务单ID", example = "1")
    private Integer id;

    @ApiModelProperty(value = "项目ID", example = "1001")
    private Integer projectId;

    @ApiModelProperty(value = "项目名称", example = "XXX项目")
    private String projectName;

    @ApiModelProperty(value = "政府采购项目编号", example = "CG20230567")
    private String projectNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划完成时间", example = "2023-08-15 09:30:00")
    private Date finishTime;

    @ApiModelProperty(value = "招标公告链接", example = "https://www.ccgp.gov.cn/xxx")
    private String bidLink;

    @ApiModelProperty(value = "最高限价", example = "500000.00")
    private BigDecimal ceilingPrice;

    @ApiModelProperty(value = "投标保证金", example = "20000.00")
    private BigDecimal earnestMoney;

    @ApiModelProperty(value = "投标保证金形式", example = "现金/保函/保险/无")
    private String bidMoneyForm;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开标时间", example = "2023-08-15 09:30:00")
    private Date bidOpeningTime;

    @ApiModelProperty(value = "采购单位全称", example = "XX市教育局")
    private String procurementUnit;

    @ApiModelProperty(value = "项目负责人", example = "李四")
    private String projectLeader;

    @ApiModelProperty(value = "联系方式", example = "13900139000")
    private String phone;

    @ApiModelProperty(value = "投标形式（1.自销、2.代理）", example = "1")
    private Integer bidForm;

    @ApiModelProperty(value = "需要撰写标书的份数", example = "5")
    private Integer num;

    @ApiModelProperty(value = "硬件负责人（可选多个，用逗号分隔）", example = "张三,王五")
    private String hardwareManager;

    @ApiModelProperty(value = "软件负责人（可选多个，用逗号分隔）", example = "赵六,孙七")
    private String softwareManager;

    @ApiModelProperty(value = "方案负责人（可选多个，用逗号分隔）", example = "周八")
    private String schemeManager;

    @ApiModelProperty(value = "需要特别注意事项", example = "开标前需提交原件审核")
    private String mattersNeedAttention;

    @ApiModelProperty(value = "备注信息", example = "请提前3天完成标书制作")
    private String remark;
}
    